package com.roamer.school.repository.entity.sys;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.roamer.school.repository.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 角色信息
 *
 * @author roamer
 * @version V1.0
 * @date 2018/12/26 22:14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_role")
public class SysRole extends BaseEntity<SysRole> {

    private static final long serialVersionUID = -7693905288305429106L;

    /**
     * 角色名称
     * <p>唯一约束</p>
     */
    private String roleName;

    /**
     * 角色描述
     */
    private String description;

    /**
     * 是否启用
     * true: 启用, false: 不启用
     */
    @TableField(exist = false)
    private Boolean available = Boolean.TRUE;
}
